package linkedList;

public class singLinkedListTest {
    public static void main(String[] args) {
        SingLinkedList singLinkedList=new SingLinkedList();
        singLinkedList.addLast(2);
        singLinkedList.addLast(2);
        singLinkedList.addLast(2);
        singLinkedList.addLast(3);
        System.out.println(singLinkedList);
//      singLinkedList.add(1,10);
//       singLinkedList.add(3,20);
//        System.out.println(singLinkedList);
//        singLinkedList.addLast(20);
//        System.out.println(singLinkedList);
//        System.out.println(singLinkedList.contains(10));
//        System.out.println(singLinkedList.getVal(2));
//        System.out.println(singLinkedList.set(100,100));
//        System.out.println(singLinkedList.get(3));
//        System.out.println(singLinkedList);
//        System.out.println(singLinkedList.remove(0));
//        System.out.println(singLinkedList.remove(1));
//        System.out.println(singLinkedList);
//        singLinkedList.removeAllVal(2);
//        System.out.println(singLinkedList);
        singLinkedList.removeAllVal(2);
        System.out.println(singLinkedList);
    }

}
